package org.example.model;

public class Seeder extends FarmMachine {
    private int seedingDepth;
    private double seedingRate;

    public Seeder(String id) {
        super(id);
        this.type = "播种机";
        this.seedingDepth = 5;
        this.seedingRate = 10.0;
    }

    @Override
    public void performTask() {
        System.out.println(type + "[" + id + "] 正在执行播种任务: 深度=" + seedingDepth + "cm, 播种量=" + seedingRate + "kg/亩");
    }

    public int getSeedingDepth() { return seedingDepth; }
    public void setSeedingDepth(int seedingDepth) { this.seedingDepth = seedingDepth; }
    public double getSeedingRate() { return seedingRate; }
    public void setSeedingRate(double seedingRate) { this.seedingRate = seedingRate; }
}